/**
 * @license
 * Copyright 2018 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

$google-material-blue-600: #1A73E8;
$google-material-blue-800: #185ABC;
$google-material-green-600: #1E8E3E;
$google-material-grey-900: #212124;
$google-material-grey-800: #3C4043;
$google-material-grey-700: #5f6368;
$google-material-grey-600: #80868B;
$google-material-grey-300: #DADCE0;
$google-material-grey-100: #F1F3F4;

$google-codelab-step-background: #fff;
$google-codelab-step-link-color: $google-material-blue-600;


google-codelab-step {
  line-height: 24px;
  display: block;

  &:focus {
    outline: none;
  }
}

google-codelab-step {
  @import "syntax";
}

google-codelab-step h2.step-title {
  font-family: 'Google Sans', Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1em !important;
  margin: 0 0 30px !important;
}

google-codelab-step .step-title a {
  color: #3C4043;
  text-decoration: none;
}

google-codelab-step .step-title a:focus,
google-codelab-step .step-title a:hover {
  color: #212121;
  text-decoration: underline;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions {
  box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, 0.3), 0px 2px 6px 2px rgba(60, 64, 67, 0.15);
  background: $google-codelab-step-background;
  max-width: 800px;
  font-size: 14px;
  margin: 0 auto;
  margin-bottom: 90px;
  border-radius: 4px;
}

google-codelab-step .instructions .inner {
  padding: 24px;
}

google-codelab[theme="minimal"] google-codelab-step .instructions .inner {
  padding: 0 24px;
}

@media (max-width: 800px) {
  google-codelab .instructions {
    margin: 0 0 16px 0;
  }
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions :not(.step-title) > a,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions :not(.step-title) > a:visited {
  color: $google-codelab-step-link-color;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions h2,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions h3,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions h4 {
  font-weight: 400;
  margin: 0;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions h2 {
  font-weight: 300;
  line-height: 1em;
  font-size: 22px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions {
  line-height: 24px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions li {
  margin: 0.5em 0;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions h2 {
  font-weight: 500;
  margin: 20px 0 0 0;
  font-size: 20px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 0 0;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside {
  padding: 0.5em 1em;
  margin: 2em 0;
  border-left: 4px solid;
  border-radius: 4px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside p {
  margin: 0.5em 0;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.note,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.notice {
  border-color: #EA8600;
  background: #FEF7E0;
  color: $google-material-grey-900;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.tip,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.special {
  border-color: #137333;
  background: #E6F4EA;
  color: $google-material-grey-900;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.warning {
  border-color: #EA8600;
  background: #FEF7E0;
  color: $google-material-grey-900;
}

google-codelab-step .instructions aside.callout {
  background-color: #E8F0FE;
  margin: 20px 0;
  padding: 15px;
  border-left: 3px solid $google-material-blue-800;
  border-radius: 4px;
  color: $google-material-grey-900;
  font-size: 14px;
  line-height: 1.5;
}

google-codelab-step aside.callout b {
  color: $google-material-blue-800;
}

google-codelab-step .instructions ul.checklist {
  list-style: none;
  padding: 0 0 0 1em;
}

google-codelab-step .instructions ul.checklist li {
  padding-left: 24px;
  background-size: 20px;
  background-repeat: no-repeat;
  background-image: url('');
}

google-codelab-step .instructions table code,
google-codelab-step .instructions h2 code {
  background: white;
}

google-codelab-step .instructions .indented {
  margin-left: 40px;
}

google-codelab-step .instructions strong {
  font-weight: 600;
}

google-codelab-step .instructions :link paper-button {
  text-decoration: none !important;
}

google-codelab-step .instructions paper-button {
  display: inline-block;
  border-radius: 4px;
  color: #FFFFFF;
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .6px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 16px;
  padding-top: 6px;
  text-transform: none;
}

google-codelab-step .instructions paper-button a {
  text-decoration: none;
  color: inherit !important;
}

google-codelab-step a paper-button {
  /* The text-decoration styling doesn't apply to inline blocks.
     We use this trick to remove underline when paper-button
     is wrapped in the anchor element. */
  display: inline-block;
}

google-codelab-step .instructions paper-button.colored {
  background-color: $google-material-green-600;
}

google-codelab-step .instructions paper-button.red {
  background-color: #D93025;
}

google-codelab-step .instructions iron-icon {
  vertical-align: sub;
  margin-right: 7px;
  margin-left: 3px;
  font-size: 16px;
  top: -1px;
  position: relative;
}

iron-icon {
  font: normal normal normal 24px/1 "Material Icons";
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-transform: none;
  word-wrap: normal;
  font-size: inherit;
}

iron-icon[icon=file-download]::after {
  content: "cloud_download";
}

google-codelab-step .instructions img {
  max-width: 100%;
  vertical-align: bottom;
}

google-codelab-step .instructions .image-container {
  text-align: center;
}

google-codelab-step .instructions table {
  border-spacing: 0;
}

google-codelab-step .instructions td {
  vertical-align: top;
  border-bottom: 1px solid #CCC;
  padding: 8px;
}

google-codelab-step .instructions table p {
  margin: 0;
}

google-codelab:not([theme="minimal"]) .instructions h3.faq {
  border-bottom: 1px solid #ddd;
}

google-codelab:not([theme="minimal"]) .instructions ul.faq {
  list-style: none;
  padding-left: 1em;
}

google-codelab:not([theme="minimal"]) .instructions .faq li {
  font-size: 1.1em;
  margin-bottom: 0.8em;
}

google-codelab:not([theme="minimal"]) .instructions .faq a {
  color: inherit;
  text-decoration: none;
}

google-codelab:not([theme="minimal"]) .instructions .faq a:hover {
  text-decoration: underline;
}

google-codelab-step .instructions .faq a[href*="cloud.google.com"] {
  padding-left: 22px;
  background-size: 20px;
  background-repeat: no-repeat;
  background-image: url('');
}

google-codelab-step .instructions .faq a[href*="stackoverflow.com"] {
  padding-left: 22px;
  background-size: 24px;
  background-repeat: no-repeat;
  background-image: url('');
}

google-codelab-step .instructions .faq a[href*="support.google.com/webmasters/"] {
  padding-left: 24px;
  background-size: 24px;
  background-repeat: no-repeat;
  background-image: url('');
}

google-codelab-step .instructions .faq a[href*="developer.android.com"],
google-codelab-step .instructions .faq a[href*="android-developer"] {
  padding-left: 20px;
  background-repeat: no-repeat;
  background-size: 20px;
  background-image: url('');
}

google-codelab-step .instructions h3 > a[href*="github"],
google-codelab-step .instructions h3 > a[href*="github"]:visited {
  color: black;
  text-decoration: none;
  padding-left: 24px;
  background-repeat: no-repeat;
  background-size: 18px;
  background-image: url('');
}

google-codelab-step .youtube-video {
  display: flex;
  margin: auto;
  width: 560px;
  height: 315px;
  border: none;
  max-width: 100%;
  max-height: 51vw;
}

google-codelab-step .embedded-iframe {
  display: flex;
  margin: auto;
  width: 560px;
  height: 315px;
  border: none;
  max-width: 100%;
  max-height: 51vw;
}
